public class Thrower implements ThrowerInterface {
	private int softballsLeft;
	
	public Thrower(int ballsBought) {
		softballsLeft = ballsBought;
	}

	@Override
	public boolean hasNext() {
		if(softballsLeft == 0) {
			return false;
		}
	
		return true;
	}

	@Override
	public int next() {
		int oldSoftballsLeft = softballsLeft;
		
		softballsLeft--;
		
		return oldSoftballsLeft;
	}	
}
